﻿using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tOperation")]
[XmlRoot("operation", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class Operation : BaseElement
{
    /// <remarks/>
    [XmlElement("inMessageRef")]
    public XmlQualifiedName InMessageRef { get; set; } = default!;

    /// <remarks/>
    [XmlElement("outMessageRef")]
    public XmlQualifiedName OutMessageRef { get; set; } = default!;

    /// <remarks/>
    [XmlElement("errorRef")]
    public XmlQualifiedName[] ErrorRef { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("name")]
    public string Name { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("implementationRef")]
    public XmlQualifiedName ImplementationRef { get; set; } = default!;
}
